﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QuanLyThuoc.DAL;
namespace QuanLyThuoc.BUS
{
    class NhaCCBUS
    {
        private static readonly NhaCCDAL nhacc = new NhaCCDAL();

        public static DataTable SelectAll_NhaCC()
        {
            return nhacc.SelectAll_NhaCC();
        }
        
        public static DataTable SearchNhaCC_Condition(string keyword)
        {
            return nhacc.SearchNhaCC_Condition(keyword);
        }
        public static DataTable LayNhaCCTheoMa()
        {
            return nhacc.LayNhaCCTheoMa();
        }
        public static DataTable LayMaNCCTheoTen()
        {
            return nhacc.LayMaNCCTheoTen();
        }
        public static DataTable Search(int MaNCC, string TenNCC, string DiaChi, string SoDT, string Email)
        {
            return nhacc.Search(MaNCC, TenNCC, DiaChi, SoDT, Email);
        }
         public static DataTable SearchDK(int MaNCC, string TenNCC, string DiaChi, string SoDT, string Email)
         {
             return nhacc.SearchDK(MaNCC, TenNCC, DiaChi, SoDT, Email);
         }
        public static DataTable SelectID_NhaCC(int MaNCC)
        {
            return nhacc.SelectID_NhaCC(MaNCC);
        }
        public static int InsertNhaCC(string TenNCC, string DiaChi, string SoDT, string Email)
        {
            return nhacc.InsertNhaCC(TenNCC, DiaChi, SoDT, Email);
        }
        public static int UpdateNhaCC(int MaNCC, string TenNCC, string DiaChi, string SoDT, string Email)
        {
            return nhacc.UpdateNhaCC(MaNCC, TenNCC, DiaChi, SoDT, Email);
        }
        public static int DeleteNhCC(int MaNCC)
        {
            return nhacc.DeleteNhCC(MaNCC);
        }
    }
}
